import React from "react";
import Nav from "./components/Nav";
import "./style.css";

import { Switch } from "react-router-dom";

const Index = (props) => {
  return (
    <>
      <header className="top">这是电影页面</header>
      <Nav />

      <Switch>{props.children}</Switch>
    </>
  );
};

export default Index;
